using System;
using System.Collections.Generic;
using System.Text;

namespace EasySeries.Metier.Entites
{
    /*
     * 
     * Classe Episode
     * 
     * */
    public class Episode
    {
        // Numero de l'episode
        private int numEpisode;

        public int NumEpisode
        {
            get { return numEpisode; }
            set { numEpisode = value; }
        }

        // Numero de la saison
        private int numSeason;

        public int NumSeason
        {
            get { return numSeason; }
            set { numSeason = value; }
        }

        // Constructeur par defaut
        public Episode() { }

        /*
         * 
         * Constructeur a deux arguments
         * 
         * param: season: Numero de la saison
         * param: episode: Numero de l'episode
         * 
         * */
        public Episode(int numEpisode, int numSeason)
        {
            this.numEpisode = numEpisode;
            this.numSeason = numSeason;
        }

        // Redefinition de la methode ToString
        public override string ToString()
        {
            return "Saison " + this.NumSeason + " Episode " + this.NumEpisode;
        }

        public String DetailSeason
        {
            get { return "Saison " + this.NumSeason; }
        }

        public String DetailEpisode
        {
            get { return "Episode " + this.NumEpisode; }
        }
    }
}
